<?php
class Userrule_Data_Updatedata implements Userimages_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE user_rules SET rule_name='".$variables['post']['rule_name']."' WHERE username='".$variables['post']['username']."';";
        //var_dump($variables['post']);
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }

}
